<?php

namespace app\common\model\company;

use think\Model;

class CompanyFileType extends Model
{
    // 设置当前模型对应的完整数据表名称
    protected $table = 'company_file_type';
    protected $pk    = 'Id';

    const STATEINT   = 11; //初始化
    const STATEOK    = 11; //没问题的
    const WAITUPLOAD = 10; //禁止上传
    const WAITDOWN   = 11; //禁止下载

    public function companyinfo()
    {
        return $this->hasOne('app\common\model\company\Company', 'CompanyId', 'CompanyId');
    }

    public function bussinfo()
    {
        return $this->hasOne('app\common\model\user\User', 'UserId', 'CreateUserId');
    }

}
